package structural.facade;

import structural.facade.child.Cpu;
import structural.facade.child.Disk;
import structural.facade.child.Memory;

public class ComputerFacade {
    private Cpu m_pCpu;
    private Disk m_pDisk;
    private Memory m_pMemory;

    public ComputerFacade() {
        this.m_pCpu = new Cpu();
        this.m_pDisk = new Disk();
        this.m_pMemory = new Memory();
    }

    public void start() {
        this.m_pCpu.start();
        this.m_pMemory.start();
        this.m_pDisk.start();
    }

    public void end() {
        this.m_pDisk.end();
        this.m_pMemory.end();
        this.m_pCpu.end();
    }

}
